package com.hexacta.hrs.domain.staffing;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;

import org.vectrics.cv.PersonSkill;
import org.vectrics.employee.Employee;

public class RequirementResult {
	private Employee employee;
	private Integer disponibilityMonths;
	private Calendar availableDate;
	private Double result;
	private List<PersonSkill> skills;
	
	public RequirementResult(Employee employee, Integer disponibilityMonths, Calendar availableDate, Double result, List<PersonSkill> skills) {
		this.employee = employee;
		this.disponibilityMonths = disponibilityMonths;
		this.availableDate = availableDate;
		this.result = result;
		this.skills = skills;
	}

	public Employee getEmployee() {
		return employee;
	}
	
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public Integer getDisponibilityMonths() {
		return disponibilityMonths;
	}
	
	public void setDisponibilityMonths(Integer dosponibilityMonths) {
		this.disponibilityMonths = dosponibilityMonths;
	}
	
	public Calendar getAvailableDate() {
		return availableDate;
	}

	public void setAvailableDate(Calendar availableDate) {
		this.availableDate = availableDate;
	}

	public Double getResult() {
		return result;
	}
	
	public void setResult(Double result) {
		this.result = result;
	}

	public List<PersonSkill> getSkills() {
		return skills;
	}

	public void setSkills(List<PersonSkill> skills) {
		this.skills = skills;
	}
	
	public String getFormatedAvailableDate(){
		SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
		return sdf.format(this.availableDate.getTime());
	}
}
